.class public Lcom/felhr/deviceids/CH34xIds;
.super Ljava/lang/Object;
.source "CH34xIds.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/felhr/deviceids/CH34xIds$ConcreteDevice;
    }
.end annotation


# static fields
.field private static final ch34xDevices:[Lcom/felhr/deviceids/CH34xIds$ConcreteDevice;


# direct methods
.method static constructor <clinit>()V
    .locals 5

    const/4 v0, 0x4

    .line 10
    new-array v0, v0, [Lcom/felhr/deviceids/CH34xIds$ConcreteDevice;

    new-instance v1, Lcom/felhr/deviceids/CH34xIds$ConcreteDevice;

    const/16 v2, 0x5523

    const/16 v3, 0x4348

    invoke-direct {v1, v3, v2}, Lcom/felhr/deviceids/CH34xIds$ConcreteDevice;-><init>(II)V

    const/4 v3, 0x0

    aput-object v1, v0, v3

    new-instance v1, Lcom/felhr/deviceids/CH34xIds$ConcreteDevice;

    const/16 v3, 0x1a86

    const/16 v4, 0x7523

    invoke-direct {v1, v3, v4}, Lcom/felhr/deviceids/CH34xIds$ConcreteDevice;-><init>(II)V

    const/4 v4, 0x1

    aput-object v1, v0, v4

    new-instance v1, Lcom/felhr/deviceids/CH34xIds$ConcreteDevice;

    invoke-direct {v1, v3, v2}, Lcom/felhr/deviceids/CH34xIds$ConcreteDevice;-><init>(II)V

    const/4 v2, 0x2

    aput-object v1, v0, v2

    new-instance v1, Lcom/felhr/deviceids/CH34xIds$ConcreteDevice;

    const/16 v2, 0x445

    invoke-direct {v1, v3, v2}, Lcom/felhr/deviceids/CH34xIds$ConcreteDevice;-><init>(II)V

    const/4 v2, 0x3

    aput-object v1, v0, v2

    sput-object v0, Lcom/felhr/deviceids/CH34xIds;->ch34xDevices:[Lcom/felhr/deviceids/CH34xIds$ConcreteDevice;

    return-void
.end method

.method public static isDeviceSupported(II)Z
    .locals 5

    const/4 v0, 0x0

    const/4 v1, 0x0

    .line 20
    :goto_0
    sget-object v2, Lcom/felhr/deviceids/CH34xIds;->ch34xDevices:[Lcom/felhr/deviceids/CH34xIds$ConcreteDevice;

    array-length v3, v2

    const/4 v4, 0x1

    sub-int/2addr v3, v4

    if-gt v1, v3, :cond_1

    .line 22
    aget-object v3, v2, v1

    iget v3, v3, Lcom/felhr/deviceids/CH34xIds$ConcreteDevice;->vendorId:I

    if-ne v3, p0, :cond_0

    aget-object v2, v2, v1

    iget v2, v2, Lcom/felhr/deviceids/CH34xIds$ConcreteDevice;->productId:I

    if-ne v2, p1, :cond_0

    return v4

    :cond_0
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    return v0
.end method
